package com.xhsj.user.sms.purchase.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xhsj.user.sms.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 采购订单子任务-清单表
 * </p>
 *
 * @author suxiaolin
 * @since 2020-06-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_purchase_subtask_list")
public class TbPurchaseSubtaskList extends BaseEntity<TbPurchaseSubtaskList> {

    private static final long serialVersionUID = 1L;

    /**
     * 业务id/采购订单子任务表id
     */
    @TableField("data_id")
    private String dataId;
    /**
     * 业务id/采购订单子任务表id
     */
    @TableField("order_goods_id")
    private String orderGoodsId;

    /**
     * 品号
     */
    @TableField("item_no")
    private String itemNo;

    /**
     * 品名
     */
    @TableField("item_name")
    private String itemName;

    /**
     * 规格
     */
    @TableField("specification")
    private String specification;

    /**
     * 数量
     */
    @TableField("apply_number")
    private Integer applyNumber;

    /**
     * 单位
     */
    @TableField("unit")
    private String unit;

    /**
     * 单价
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 总金额
     */
    @TableField("total_money")
    private BigDecimal totalMoney;

//
//    /**
//     * 退货数量
//     */
//    @TableField("back_number")
//    private int backNumber;
}
